<%-- 
    Document   : DynamicText
    Created on : Dec 21, 2008, 5:42:11 AM
    Author     : jio
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Dynamic Text</title>
        <script type='text/javascript' src='/wp1/dwr/interface/Demo.js'></script>
        <script type='text/javascript' src='/wp1/dwr/engine.js'></script>
        <script type='text/javascript' src='/wp1/dwr/util.js'></script>

    </head>
    <body>


        <script type='text/javascript'>

            function update() {
                var name = dwr.util.getValue("demoName");
                Demo.sayHello(name, function(data) {
                    dwr.util.setValue("demoReply", data);
                });
            }


        </script>
        <h1>Dynamic Text</h1>
        <p>
            Name:
            <input type="text" id="demoName"/>
            <input value="Send" type="button" onclick="update()"/>
            <br/>
            Reply: <span id="demoReply"></span>
        </p>


    </body>
</html>
